<?php
  // Classe definissant une exception a l'execution
  //Auteur : Sebastian Mosser
  
class RuntimeException extends Exception {

	private $_caller;
	
	public function __construct($caller,$message,$code = 0) {
		$this->_caller = $caller;
		parent::__construct($message,0);
	}
	
	function __toString() {
		return $this->_toString();
	}
	
	function _toString() {
		$res = "An exception occured ... bad guy ! <br />";
		$res .= "Balloon/" . $this->_caller . " ==> " . $this->message . "<br /><br />";
		$res .= "Stack contents : <br />". nl2br($this->getTraceAsString());
		return $res;
	}


}


?>